#include "BKAPI.h"

#include <iostream>
#include <strings.h>

std::string LongToString(long value);

LRESULT CALLBACK WindProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

int main()
{
	using namespace BKAPI;

	BKMouse Mouse;
	BKWindow Window;
	
	Window.MakeSimpleWindow(WindProc, "Test Window");
	
	return 0;
}

LRESULT CALLBACK WindProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch(msg)
	{
		case WM_LBUTTONDOWN:
		{
			BKAPI::BKFileSystem FileSystem;
			std::string message = "You are currently working in:\n" + FileSystem.CurrentDirectory();
			MessageBox(hwnd, message.c_str(), "Hello, World!", MB_OK | MB_ICONINFORMATION);
			break;
		}
		case WM_CLOSE:
			DestroyWindow(hwnd);
			break;
		case WM_DESTROY:
			PostQuitMessage(0);
			break;
		default:
			return DefWindowProc(hwnd, msg, wParam, lParam);
	}
	return 0;
}